<template>
  <div>
    <h1>HOME</h1>

    <div>

      <!-- 直接写地址 -->
      <router-link to="/home/news">新闻</router-link>

      <!-- 写成对象，键为path，值为地址 -->
      <router-link :to="{path:'/home/music'}">音乐
      </router-link>

      <!-- 写成对象，键为name，值为index.js路由表中对应的name值 -->
      <router-link :to="{name:'Game'}">游戏</router-link>

    </div>

    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Home",
 }
</script>

<style></style>
